import {
  HTTP
} from "../utils/http.js"
class ConfirmModel extends HTTP {
  getStationMsg(shopId, oilNum) {
    return this.request({
      url: 'program/antProgramApiService/oilStationQuery',
      data: {
        shopId,
        oilNum
      },
      method: 'POST'
    })
  }
  getOilAngGun(shopId) {
    return this.request({
      url: 'bj/bjShellAntMiniProgramService/getOilGun',
      data: {
        shopId
      },
      method: 'POST'
    })
  }
  getTrade(shopId,oilgunNo) {
    return this.request({
      url: 'bj/bjShellAntMiniProgramService/getOilGunTradeAll',
      data: {
        shopId,
        oilgunNo
      },
      method: 'POST'
    })
  }
  getOilNum(shopId) {
    return this.request({
      url: 'program/antProgramApiService/goodsQuery',
      data: {
        shopId
      },
      method: 'POST'
    })
  }
  getGunNum(shopId, goodsId) {
    return this.request({
      url: 'program/antProgramApiService/oilGunQuery',
      data: {
        shopId,
        goodsId
      },
      method: 'POST'
    })
  }
  getDiscountAmount(amount) {
    return 0
  }
  getCanUseTicket(amount) {
    return this.request({
      url: 'program/antCouponService/getCouponListByAmount',
      data: {
        amount
      },
      method: 'POST'
    })
  }
 
  createTrade(shopId,modelPhone,deliveryId,oilGunNo,deliveryCode,deliveryCodeName,deliveryVolume,deliveryAmount,deliveryPrice,payType,jiayouSource,entityNum) {
    return this.request({
      url: 'bj/bjShellAntMiniProgramService/createTrade',
      data: {
        shopId,
        modelPhone,
        deliveryId,
        oilGunNo,
        deliveryCode,
        deliveryCodeName,
        deliveryVolume,
        deliveryAmount,
        deliveryPrice,
        payType,
        jiayouSource,
        entityNum,
      },
      method: 'POST'
    })
  }
  getStationList(oilCode,stationName,userX,userY) {
    return this.request({
      url: 'program/stationService/getStationList',
      data: {
        userX, 
        userY,
        oilCode,
        stationName,
      },
      method: 'POST'
    })
  }
  getGoodsList () {
    return this.request({
      url: 'program/antProgramApiService/getGoodsList ',
      data: {
      },
      method: 'POST'
    })
  }
  checkDistance(userX,userY,stationX,stationY) {
    return this.request({
      url: 'program/stationService/checkDistance',
      data: {
        userX,
        userY,
        stationX,
        stationY,
      },
      method: 'POST'
    })
  }
  getSlogan(shopId) {
    return this.request({
      url: 'program/antProgramApiService/getSlogan',
      data: {
        shopId
      },
      method: 'POST'
    })
  }
}
export {
  ConfirmModel
}